package org.oep.game;

public class Point {
	public int x, y;
	
	public Point() {
		this.x = 0; this.y = 0;
	}
	
	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public double distance(Point p) {
		return Math.sqrt( (p.x - x)*(p.x - x) + (p.y - y)*(p.y - y) );
	}
	
	public String toString() {
		return "(" + x + ", " + y + ")";
	}
}
